package com.dick.base.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dick.base.model.BaseDictValue;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BaseDictValueMapper extends BaseMapper<BaseDictValue> {

    @Select("SELECT * FROM base_dict_value WHERE code = #{code} order by sort_code")
    List<BaseDictValue> selectValuesByCode(@Param("code") String code);
}
